/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package controller;
/**
 *
 * @author Reza Ayadi Panah
 */
public class InsertMoney extends StateC {
    
    protected InsertMoney(){
        displayStr(" Insert the required money please ");
        System.out.println(" Tast 1 for 1kr. \n Tast 2 for 2kr. \n " +
                "Tast 5 for 5kr. \n Tast 10 for 10kr \n Tast 20 for 20kr ");
    }
    
    @Override
    protected void handle(String event, int data){
        
        if (data >= money){
            changeState(new Brewing());
        }
    }

}
